package com.zh.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import com.zh.domain.Model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @TableName projects
 */
@TableName(value = "projects")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "Project",description = "项目表")
public class Project extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("项目id")
    private Integer id;
    @ApiModelProperty("项目名称")
    private String title;
    @ApiModelProperty("项目编号,默认从id生成器获取")
    private String code;
    @ApiModelProperty("团队id")
    private Integer teamId;
    @ApiModelProperty("项目描述")
    private String description;
    @ApiModelProperty("项目负责人id")
    private Integer ownerId;
    @ApiModelProperty("项目开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty("项目结束时间")
    private LocalDateTime endTime;
    @ApiModelProperty("项目完成时间")
    private LocalDateTime completeTime;
    @ApiModelProperty("项目进度")
    private BigDecimal progress;
    @ApiModelProperty("是否允许延期0否1是")
    private Integer canDelay;
    @ApiModelProperty("状态(0规划中1进行中2暂停中3已逾期4已完成5已废弃)")
    private Integer status;
    @ApiModelProperty("备注")
    private String remark;
}